import Relation from "@ctsy/relation";

export default class Orders extends Relation {
    _many = {
        Orr__Detail: {
            name: 'OrderDetail',
            table: 'OrderDetail',
            fields: 'OrderID,LID,GoodsID,BGID,HandType,Amount,Batch,Cost,Price,Money,Memo,BStock,BTStock,AStock,ATStock,V,GoodsV,GoodsIDV',
            pk: 'OrderID',
            fk: 'OrderID',
        }
    }
    _one={
        OrdersVersion: {
            name: 'OrdersVersion',
            table: 'OrdersVersion',
            fields:'OVID,InUnitID,InStoreID,OutUnitID,OutStoreID,CTime,CUID,OrderID,V,InType,OutType,IsInTrans,IsOutTrans',
            pk: 'OrderID',
            fk: 'OrderID',
        }
    }
}

